<!DOCTYPE html>
<html>

<head lang="en">
	<meta charset="UTF-8">
	<title>208宿舍值日提醒</title>
	<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
	<link rel="stylesheet" href="static/css/public.css" />
	<link rel="stylesheet" type="text/css" href="static/css/index.css" />
	<script type="text/javascript" src="static/js/jquery-2.2.4.min .js"></script>
	<script type="text/javascript" src="static/js/zturn.js"></script>
	<script type="text/javascript" src="static/js/kc.js"></script>
</head>

<body>
    
    
    
	<div style="height: 100%;width: 100%;margin:0 auto;">
	<div class="lb_gl">
		<div class="container">
		    
		    
			<div class="pictureSlider poster-main">
				<ul id="zturn" class="poster-list">
				</ul>
			</div>
		</div>
	</div>
	
	<div style="padding-right:80xp" align="center">
						<iframe  frameborder="no" border="0" marginwidth="0" marginheight="0" width=250 height=52 src="//music.163.com/outchain/player?type=2&id=1478202791&auto=1&height=32"></iframe>
					</div>
	
	
</div>

   


	<script type="text/javascript">
		var list = ["唐智勇","谭永敢","李兆阔","黄亚汉","王成信","吴廉权","封淞耀","黄先乐"];
		init(list);
	
	
		function init(list){
			var date = new Date();
			var nowMonth = date.getMonth() + 1;
			var strDate = date.getDate();
			var name = list[strDate%list.length];
		
			
			if(list[strDate%list.length+1]==undefined){
			   var name2 =list[strDate%list.length-7]
			}else{
			   	var name2 = list[strDate%list.length+1];
			}
			
			
			if(list[strDate%list.length-1]==undefined){
			    var name3 =list[strDate%list.length+7]
			}else{
			    var name3 = list[strDate%list.length-1];
			}
			
			var seperator = "-";
			if (nowMonth >= 1 && nowMonth <= 9) {
			   nowMonth = "0" + nowMonth;
			}
			if (strDate >= 0 && strDate <= 9) {
			   strDate = "0" + strDate;
			}
			
			
			  aa=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());
			     
                  hh=new Date().getHours();
                   
               
			
			
			var nowDate = date.getFullYear() + seperator + nowMonth + seperator + strDate;
			var div = $("#zturn");
			var innerHTML = `
				<li class="poster-item zturn-item">
					
					<p class="say">昨天值日的是${name3}同学</p>
					<p </p>	<p </p>
					<p class="say">今天值日的是${name}同学</p>
					<p </p>	<p </p>
					<p class="say">明天值日的是${name2}同学</p>	
		
					
				
					
					
					
					<div class="for_btn">
						<img align="center" src="http://api.btstu.cn/sjbz/?lx=meizi" width="300">
						
					</div>
				</li>		`;
				
	
				
			div.append(innerHTML);
			new zturn({
				id: "zturn",
				opacity: 0.9,
				width: 200,
				Awidth: 300,
				scale: 0.9,
				auto: false,//是否轮播 默认5000
				turning: 1000//轮播时长
			})
			
		}
	</script>
	
		
		
</body>
</html>